home *** CD-ROM | disk | FTP | other *** search
/ One Click 11 / OneClick11.iso / Bancos de Dados / Conversao / Mysql2Excel / Setup.exe / Mysql2Excel.exe / Scripts.py2exe / __main__.py next >
Encoding:
Python Source  |  2003-06-10  |  566 b   |  25 lines

  1. #!/usr/bin/env python
  2. #Boa:App:BoaApp
  3.  
  4. from wxPython.wx import *
  5.  
  6. import Frame
  7.  
  8. modules ={u'Frame': [1, 'Main frame of Application', u'Frame.py']}
  9.  
  10. class BoaApp(wxApp):
  11.     def OnInit(self):
  12.         wxInitAllImageHandlers()
  13.         self.main = Frame.create(None)
  14.         # needed when running from Boa under Windows 9X
  15.         self.SetTopWindow(self.main)
  16.         self.main.Show();self.main.Hide();self.main.Show()
  17.         return True
  18.  
  19. def main():
  20.     application = BoaApp(0)
  21.     application.MainLoop()
  22.  
  23. if __name__ == '__main__':
  24.     main()
  25.